{% extends 'layouts/form_template.html' %}

{% block form_card_body %}
    <div class="card-body p-3">
        <div class="d-flex flex-column h-100">
            <form role="form text-left" method="post" action="{% url 'model_detail' -1 %}">

                {% csrf_token %}

                {{ form.name.label_tag }}
                <div class="mb-3">
                    {{ form.name }}
                </div>
                <span class="text-error">{{ form.name.errors }}</span>

                {{ form.desc.label_tag }}
                <div class="mb-3">
                    {{ form.desc }}
                </div>
                <span class="text-error">{{ form.desc.errors }}</span>

                {{ form.context.label_tag }}
                <p class="text-sm">推荐<a href="https://jsonvisio.com/editor"> JsonVisio </a>，编辑以下内容，完成后粘贴即可。</p>
                <div class="mb-3">
                    {{ form.context }}
                </div>
                <span class="text-error">{{ form.context.errors }}</span>

                <div class="text-center">
                    <button type="submit" name="create_project" class="btn bg-gradient-info w-100 mt-4 mb-0">
                        Submit
                    </button>
                </div>
            </form>
        </div>
    </div>
{% endblock form_card_body %}

